<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<div class="top-nav-bar">
	<c:if test="${sessionScope.USER_USERNAME!=null}">
		<div class="top-nav-bar-content">
	       <div class="top-nav-bar-user">
	       	<span class="user-greeting">Hello, ${sessionScope.USER_USERNAME}</span>
	           <a class="top-nav-bar-link" href="#" onclick="loadFavouries()">Favouries Menu</a>&nbsp;&nbsp;|&nbsp;&nbsp;
	           <a class="top-nav-bar-link" href="#" onclick="logout()">logout</a>
	       </div>
	   </div>
   </c:if>
	<c:if test="${sessionScope.USER_USERNAME==null}">
		<div class="top-nav-bar-content">
	       <div class="top-nav-bar-user">
	           <a class="top-nav-bar-link" href="user-login.jsp">Log in</a>&nbsp;&nbsp;|&nbsp;&nbsp;
	           <a class="top-nav-bar-link" href="register.jsp">Register</a>
	       </div>
	   </div>
   </c:if>
</div>
</body>
</html>